#include<stdio.h>
int main()
{
    int a,b,n;
    a=1;
    b=1;
    n=0;
    scanf ("%d",&n);
    while (a<=n)//控制输出几行
    {
        b=1;
        while (b<=a)//控制每行输出几个a
        {
            printf("%d",a);
            b=b+1;
        }
        printf("\n");
        a=a+1;
    }
    return 0;
}